-- GENERATED SPELL FOR [Kamagua Spearman] --


function spell0_27167(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(38556,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27167', 1500, 1)
end

function Sorts_27167(pUnit, Event)
local choix_sorts_27167 = math.random(0, 0)
if choix_sorts_27167 == 0 then
pUnit:RegisterEvent('spell0_27167', 1, 1)
end
end

function mob27167_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27167', math.random(1500, 3000), 1)
end

function mob27167_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27167_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27167_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27167, 1, 'mob27167_Action')
RegisterUnitEvent(27167, 2, 'mob27167_Leave')
RegisterUnitEvent(27167, 3, 'mob27167_Kill')
RegisterUnitEvent(27167, 4, 'mob27167_Die')
